package com.wunu.smartlock1.net.response;

import java.util.List;

public class LockMemberList {

    private List<LockMember> lockMembers;
    private List<TempMember> tempMembers;

    private Boolean isOwner;


    public static class TempMember {
        private Long id;
        private String name;
        private String photo;
        private Integer tempKey;
        private String startTime;
        private int validTime;
        private int validCount;

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhoto() {
            return photo;
        }

        public void setPhoto(String photoUrl) {
            this.photo = photoUrl;
        }

        public Integer getTempKey() {
            return tempKey;
        }

        public void setTempKey(Integer group) {
            this.tempKey = group;
        }

        public String getStartTime(){
            return  this.startTime;
        }
        public void setStartTime(String time){
            this.startTime = time;
        }
       public int getValidTime(){return this.validTime;}
       public void setValidTime(int validTime){this.validTime = validTime;}
       public int getValidCount(){return this.validCount;}
       public void setValidCount(int validCount){this.validCount = validCount;}

        @Override
        public String toString() {
            return "LockMember{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    ", photo='" + photo + '\'' +
                    ", tempKey=" + tempKey +
                    ", startTime=" + startTime +
                    ", validTime=" + validTime +
                    ", validCount=" + validCount +
                    '}';
        }
    }
    public static class LockMember {
        private Long id;
        private String name;
        private String photo;
        //锁成员
        private Integer group;
        private Integer state;

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhoto() {
            return photo;
        }

        public void setPhoto(String photoUrl) {
            this.photo = photoUrl;
        }

        public Integer getGroup() {
            return group;
        }

        public void setGroup(Integer group) {
            this.group = group;
        }

        public Integer getState() {
            return state;
        }

        public void setState(Integer state) {
            this.state = state;
        }

        @Override
        public String toString() {
            return "LockMember{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    ", photo='" + photo + '\'' +
                    ", group=" + group +
                    ", state=" + state +
                    '}';
        }
    }

    public List<LockMember> getLockMembers() {
        return lockMembers;
    }

    public void setLockMembers(List<LockMember> lockMembers) {
        this.lockMembers = lockMembers;
    }

    public List<TempMember> getTempMembers() {
        return tempMembers;
    }

    public void setTempMembers(List<TempMember> tempMembers) {
        this.tempMembers = tempMembers;
    }

    public Boolean getOwner() {
        return isOwner;
    }

    public void setOwner(Boolean owner) {
        isOwner = owner;
    }

    @Override
    public String toString() {
        return "LockMemberData{" +
                "lockMembers=" + lockMembers +
                ", tempMembers=" + tempMembers +
                ", isOwner=" + isOwner +
                '}';
    }
}


